﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Siren.MFE.WebApplication.App_Code.Constants;

namespace Siren.MFE.WebApplication.App_Code
{
    public class PageBase : System.Web.UI.Page
    {
        public PageBase()
        {
            
        }

        public void ValidateSession()
        {

            if (Session[ApplicationConstants.USER_SESSION] == null)
            {
                Response.Redirect("~/LoginPage.aspx");
            }
        }

        public string GetConnectionString
        {
            get
            {
                return Application[ApplicationConstants.CONNECTION_STRING].ToString();
            }
        }
    }
}